package ru.urfc.portal.dao;

import ru.urfc.portal.model.Client;
import ru.urfc.portal.model.Branch;

public class SpectrId {
	private Long id;
	private Branch branch;
	
	public SpectrId(Client client) {
		this(client.getContragentId(), client.getBranch());
	}
	
	public SpectrId(Long id, Client client) {
		this(id, client.getBranch());
	}
	
	public SpectrId(Long id, SpectrId contragentId) {
		this(id, contragentId.getBranch());
	}
	
	public SpectrId(Long id, Branch branch) {
		this.id = id;
		this.branch = branch;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Branch getBranch() {
		return branch;
	}

	public void setBranch(Branch branch) {
		this.branch = branch;
	}
	
}
